//============================================================================
// Name        : FileReader.h
// Author      : Anthea Neums, Jonas Halbach
//			   :
// Description : This Interface describes the structure of the Class FileREader which
//					is used to read the content of a file and parse it
//					into a char string.
//============================================================================

#ifndef FILEREADER_H_
#define FILEREADER_H_

#include <iostream>
#include <fstream>

#include <string.h>

class FileReader {
public:
	FileReader(char* filename);
	virtual ~FileReader();
	char* getContent();
    int getSize(void);
	char* getNext(int pos, int length);
private:
   char* fileName;
   int size;
   char* content;
   int calculateSize(void);
   void convertStreamToChar();
   std::ifstream* fileStream;
};

#endif /* FILEREADER_H_ */
